﻿<Application x:Class="USElections.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
             xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
             xmlns:sa="clr-namespace:USElections.Analytics;assembly=USElections.Analytics">

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/USElections;component/Styles/CandidatesListBoxStyle.xaml" />
                <ResourceDictionary Source="/USElections;component/Styles/FeedListBoxStyle.xaml" />
                <ResourceDictionary Source="/USElections;component/Styles/TransitionStyles.xaml" />
                <ResourceDictionary Source="/USElections.Utils;component/Styles/NotificationBoxStyle.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <sa:AnalyticsService WebPropertyId="__your id__" />
        <shell:PhoneApplicationService Launching="Application_Launching"
                                       Closing="Application_Closing"
                                       Activated="Application_Activated"
                                       Deactivated="Application_Deactivated" />
    </Application.ApplicationLifetimeObjects>
</Application>